cmake_minimum_required(VERSION 3.26)
project(untitled3)

set(CMAKE_CXX_STANDARD 17)

include_directories(
        ${PROJECT_SOURCE_DIR}/common
        ${PROJECT_SOURCE_DIR}/trans
        ${PROJECT_SOURCE_DIR}/reactor
        ${PROJECT_SOURCE_DIR}/tcp
        ${PROJECT_SOURCE_DIR}/thread
)

add_subdirectory(common)
add_subdirectory(tcp)
add_subdirectory(thread)
add_subdirectory(trans)
add_subdirectory(reactor)

link_libraries(tcp trans reactor thread common)
set(EXECUTABLE_OUTPUT_PATH  ${PROJECT_SOURCE_DIR}/bin)

add_executable(untitled3 main.cpp)

target_link_libraries(untitled3 jsoncpp mysqlclient)